package cn.hn.java.summer.db.builder;

/**
 * 格式化sql的结果类
 * @author sjg
 *
 */
public class FormatResult{
	private String sql;
	private Object[] args;
	private boolean isSelect;
	private boolean isInsert;
	private boolean isUpdate;
	private boolean isDelete;

	public String getSql() {
		return sql;
	}
	public void setSql(String sql) {
		this.sql = sql;
	}
	public Object[] getArgs() {
		return args;
	}
	public void setArgs(Object[] args) {
		this.args = args;
	}

	public boolean isSelect() {
		return isSelect;
	}

	public void setSelect(boolean select) {
		isSelect = select;
	}

	public boolean isInsert() {
		return isInsert;
	}

	public void setInsert(boolean insert) {
		isInsert = insert;
	}

	public boolean isUpdate() {
		return isUpdate;
	}

	public void setUpdate(boolean update) {
		isUpdate = update;
	}

	public boolean isDelete() {
		return isDelete;
	}

	public void setDelete(boolean delete) {
		isDelete = delete;
	}

	public FormatResult(){
		
	}
	
	public FormatResult(String sql, Object[] args){
		this.sql=sql;
		this.args=args;
	}
}